package nehe.tutorial;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class TextureMapping extends Activity {
	
	private GLSurfaceView surface;
	private GLRenderer renderer;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
							 WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		surface = new GLSurfaceView(this);
		renderer = new GLRenderer(this);
		surface.setRenderer(renderer);
		setContentView(surface);
	}
	
	@Override
	public void onResume() {
		super.onResume();
		surface.onResume();
	}
	
	@Override
	public void onPause() {
		super.onPause();
		surface.onPause();
	}
	
	@Override
	public void onStop() {
		super.onStop();
	}
}